<?php

require '../database.inc.php';
require '../MessageRepository.php';

header('Content-type: application/json');

$commentId = $_POST['commentId'];
$messageRepository = new MessageRepository();
$messageRepository->deleteComment($db, $commentId);
$data = array('commentId' => $commentId);
$json = json_encode($data);
echo $json;
?>
